package day07;

public class field {
    public static void main(String[] args) {

       Employee emp1  = new Employee(1,"七七",25,"战士",688.5,556454,"2021","广州");
        System.out.println(emp1);
    }
}
class Employee{
    int id;
    String name;
    int age;
    String job;
    double Salary;
    double salary1;
    String hiredate;
    String address;
    void kaihui(){
        System.out.println("打卡");
    }
    public Employee(int id, String name, int age, String job, double salary, double salary1, String hiredate, String address) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.job = job;
        Salary = salary;
        this.salary1 = salary1;
        this.hiredate = hiredate;
        this.address = address;
    }
    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", job='" + job + '\'' +
                ", Salary=" + Salary +
                ", salary1=" + salary1 +
                ", hiredate='" + hiredate + '\'' +
                ", address='" + address + '\'' +
                '}';
    }

}